<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="../../ohter/js库/mock.js"></script>
    <script src="../../ohter/js库/vue.js"></script>
    <title>js变量</title>
    <style>
    </style>
   
    <script>
        // let name=prompt('请输入你的名字')
        // console.log(name)
        /* 
            js变量
                let
                var
                const
        */
        var age = 17;
        //    console.log(age)
        age = 18
        //    console.log(age)

        // 同时声明多个变量 只需写一次var let const
        let agee = 15, myba = 'ergth', sss = 'rgthyjn'
        console.log(agee, myba+'sdf', sss)
        // 只声明不给初始值 默认为unfined(未定义)
        // 未声明页未赋值 会报错
        // console.log(aa)
        // 不声明直接赋值 默认为var
        ad=43
        console.log(ad)
    </script>

</head>

<body>
    <div id="root">
    </div>
    <script>
        Vue.config.productionTip = false
        const vm = new Vue({
            el: '#root',
            data() {
                return {
                }
            },
        })
    
    </script>
</body>


</html>